// JavaScript Document
function displayResult(xmlfile, xslfile) {
	var xml = loadXMLDoc(xmlfile);
	var xsl = loadXMLDoc(xslfile);
	
	//Code for IE
	if(window.ActiveXObject) {
		ex = xml.transformNode(xsl);
		document.getElementById("body").innerHTML = ex;
	//Code for Firefox, Opera, Mozilla
	} else if(document.implementation && document.implementation.createDocument) {
		xsltProcessor = new XSLTProcessor();
		xsltProcessor.importStylesheet(xsl);
		resultDocument = xsltProcessor.transformToFragment(xml,document);
		document.getElementById("body").appendChild(resultDocument);
	}
}